package nl.windgazer.arachne.services;

import java.util.Locale;

public class LanguageVO {

	private final static String KEY_PREFIX = "language.";

	private final Locale locale;
	private final String key;

	public LanguageVO (Locale locale) {
		this.locale = locale;
		this.key = new StringBuffer(KEY_PREFIX).append(locale.toString()).toString();
	}

	public Locale getLocale() {
		return locale;
	}

	public String getKey() {
		return key;
	}

	public String toString() {
		return locale.toString();
	}
}
